package com.poker.entity;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.GenericGenerators;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName ActivityOuts
 * @Description TODO
 * @Author duyuanyuan
 * @Date 2019/3/1215:39
 * @Version 1.0
 **/
@Entity
@Data
@Table(name = "outs")
public class ActivityOuts implements Serializable {

    private static final long serialVersionUID = 1635305216282619384L;
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid",strategy = "uuid")
    private String id;

    @Column(name = "activity_id")
    private String activityId;

    @Column(name = "activity_name")
    private String activityName;

    @Column(name = "outs_title")
    private String outsTitle;

    @Column(name = "outs_author")
    private String outsAuthor;

    @Column(name = "outs_img")
    private String outsImg;

    @Column(name = "outs_istop")
    private Boolean isTop;

    @Column(name = "outs_status")
    private Boolean outsStatus;

    @Column(name = "outs_content")
    private String content;

    @Column(name = "create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @Column(name = "input_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputTime;

    @Column(name = "classify")
    private Integer classify; // 0、德州，1、双升
}
